package com.vogue.pay.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("orders")
public class Orders {

    @TableId
    private Long id;

    private String body;

    @TableField("out_trade_no")
    private String outTradeNo;

    @TableField("spbill_create_ip")
    private String spbillCreateIp;

    @TableField("trade_type")
    private String tradeType;

    @TableField("product_id")
    private String productId;

    @TableField("prepay_id")
    private String prepayId;

    @TableField("code_URL")
    private String codeURL;

    private BigDecimal price;

    private Integer amount;

    @TableField("total_fee")
    private Integer totalFee;
    /**
     * 付款状态(10未付款 20已付款)
     */
    @TableField("pay_status")
    private Integer payStatus;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("pay_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

}